import request from '@/utils/request'

// ······························· 【公告管理---start】 ····································
// 公告管理-列表
export function getNotice (params) {
  return request({
    url: '/announcement/getList',
    method: 'get',
    params:params
  })
}
// 公告管理-新增
export function addNotice(data) {
  return request({
    url: '/announcement/add',
    method: 'post',
    data:data
  })
}

// 公告管理-修改
export function editNotice(data) {
  return request({
    url: '/announcement/update',
    method: 'put',
    data: data
  })
}

// 公告管理-删除
export function delNotice(data) {
  return request({
    url: '/announcement/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【公告管理---end】 ····································



// ······························· 【邮件管理---start】 ····································
// 邮件管理-列表
export function getMail (params) {
  return request({
    url: '/mailManage/getList',
    method: 'get',
    params:params
  })
}

// 邮件管理-新增
export function addMail(data) {
  return request({
    url: '/mailManage/add',
    method: 'post',
    data:data
  })
}

// 邮件管理-修改
export function editMail(data) {
  return request({
    url: '/mailManage/update',
    method: 'put',
    data: data
  })
}

// 邮件管理-删除
export function delMail(data) {
  return request({
    url: '/mailManage/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【邮件管理---end】 ····································



// ······························· 【邮箱模版---start】 ····································
// 邮箱管理-列表
export function getEmailTemplate (params) {
  return request({
    url: '/emailTemplate/getList',
    method: 'get',
    params:params
  })
}

// 邮箱管理-新增
export function addEmailTemplate(data) {
  return request({
    url: '/emailTemplate/add',
    method: 'post',
    data:data
  })
}

// 邮箱管理-修改
export function editEmailTemplate(data) {
  return request({
    url: '/emailTemplate/update',
    method: 'put',
    data: data
  })
}

// 邮箱管理-删除
export function delEmailTemplate(data) {
  return request({
    url: '/emailTemplate/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【邮箱模版---end】 ····································




// ······························· 【邮箱管理---start】 ····································
// 邮箱管理-列表
export function getEmail (params) {
  return request({
    url: '/emailConfig/getList',
    method: 'get',
    params:params
  })
}

// 邮箱管理-新增
export function addEmail(data) {
  return request({
    url: '/emailConfig/add',
    method: 'post',
    data:data
  })
}

// 邮箱管理-修改
export function editEmail(data) {
  return request({
    url: '/emailConfig/update',
    method: 'put',
    data: data
  })
}

// 邮箱管理-删除
export function delEmail(data) {
  return request({
    url: '/emailConfig/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【邮箱管理---end】 ····································




// ······························· 【支付提现管理---start】 ····································
// 支付提现管理-列表
export function getMerchant (params) {
  return request({
    url: '/merchantAccount/getList',
    method: 'get',
    params:params
  })
}

// 支付提现管理-新增
export function addMerchant(data) {
  return request({
    url: '/merchantAccount/add',
    method: 'post',
    data:data
  })
}

// 支付提现管理-修改
export function editMerchant(data) {
  return request({
    url: '/merchantAccount/update',
    method: 'put',
    data: data
  })
}

// 支付提现管理-删除
export function delMerchant(data) {
  return request({
    url: '/merchantAccount/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【支付提现管理---end】 ····································




// ······························· 【短信配置---start】 ····································
// 短信配置-列表
export function getMessage (params) {
  return request({
    url: '/phoneConfig/getList',
    method: 'get',
    params:params
  })
}

// 短信配置-新增
export function addMessage(data) {
  return request({
    url: '/phoneConfig/add',
    method: 'post',
    data:data
  })
}

// 短信配置-修改
export function editMessage(data) {
  return request({
    url: '/phoneConfig/update',
    method: 'put',
    data: data
  })
}

// 短信配置-删除
export function delMessage(data) {
  return request({
    url: '/phoneConfig/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【短信配置---end】 ····································




// ······························· 【openInstall配置---start】 ····································
// openInstall配置-列表
export function getOpenInstall (params) {
  return request({
    url: '/openInstallConfig/getList',
    method: 'get',
    params:params
  })
}

// openInstall配置-新增
export function addOpenInstall(data) {
  return request({
    url: '/openInstallConfig/add',
    method: 'post',
    data:data
  })
}

// openInstall配置-修改
export function editOpenInstall(data) {
  return request({
    url: '/openInstallConfig/update',
    method: 'put',
    data: data
  })
}

// openInstall配置-删除
export function delOpenInstall(data) {
  return request({
    url: '/openInstallConfig/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【openInstall配置---end】 ····································




// ······························· 【客服地址配置---start】 ····································
// 客服地址配置-列表
export function getService (params) {
  return request({
    url: '/customerService/getList',
    method: 'get',
    params:params
  })
}

// 客服地址配置-新增
export function addService(data) {
  return request({
    url: '/customerService/add',
    method: 'post',
    data:data
  })
}

// 客服地址配置-修改
export function editService(data) {
  return request({
    url: '/customerService/update',
    method: 'put',
    data: data
  })
}

// 客服地址配置-删除
export function delService(data) {
  return request({
    url: '/customerService/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【客服地址配置---end】 ····································




// ······························· 【返利配置---start】 ····································
// 返利配置-列表
export function getAllocation (params) {
  return request({
    url: '/kolRebateConfig/getList',
    method: 'get',
    params:params
  })
}

// 返利配置-新增
export function addAllocation(data) {
  return request({
    url: '/kolRebateConfig/add',
    method: 'post',
    data:data
  })
}

// 返利配置-修改
export function editAllocation(data) {
  return request({
    url: '/kolRebateConfig/update',
    method: 'put',
    data: data
  })
}

// 返利配置-删除
export function delAllocation(data) {
  return request({
    url: '/kolRebateConfig/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【返利配置---end】 ····································




// ······························· 【渠道包配置---start】 ····································
// 渠道包配置-列表
export function getPackage (params) {
  return request({
    url: '/backendConfig/getList',
    method: 'get',
    params:params
  })
}

// 渠道包配置-新增
export function addPackage(data) {
  return request({
    url: '/backendConfig/add',
    method: 'post',
    data:data
  })
}

// 渠道包配置-修改
export function editPackage(data) {
  return request({
    url: '/backendConfig/update',
    method: 'put',
    data: data
  })
}

// 渠道包配置-删除
export function delPackage(data) {
  return request({
    url: '/backendConfig/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【渠道包配置---end】 ····································




// ······························· 【Google验证---start】 ····································
// Google验证-列表
export function getQrCode (params) {
  return request({
    url: '/qrCode/getList',
    method: 'get',
    params:params
  })
}

// Google验证-新增
export function addQrCode(data) {
  return request({
    url: '/qrCode/add',
    method: 'post',
    data:data
  })
}

// Google验证-修改
export function editQrCode(data) {
  return request({
    url: '/qrCode/update',
    method: 'put',
    data: data
  })
}

// Google验证-删除
export function delQrCode(data) {
  return request({
    url: '/qrCode/delete',
    method: 'delete',
    data: data
  })
}

// 二维码-校验
export function qrCodeCheck(data) {
  return request({
    url: '/qrCode/checkGoogleCode',
    method: 'post',
    data:data
  })
}

// 二维码选择用户
export function qrCodeUser(params) {
  return request({
    url: '/admin/getAllCanSeeData',
    method: 'get',
    params:params
  })
}
// ······························· 【Google验证---end】 ····································